package com.tust.app.service;

import com.tust.app.domain.User;

import java.util.List;

public interface UserService {
    User findById(Integer id);
    List<User> findAll();
    void insert(User user);
    boolean update(User user);
    boolean deleteById(Integer id);

    List<User> findByUsername(String username);

    User findByUsernameAndPassword(String username, String password);

}